 	<?php 
					$stt=0;$sttsp=0;						 
					$dmspBUS = new DanhMucSPBUS();
					$dmsp = $dmspBUS->getDanhMucSP();
					$spBUS = new SanPhamBUS();					
					$odd="odd";$even="even";				 		
				?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title> 
<link rel="stylesheet" type="text/css" href="../css/top.css"/>
<link rel="stylesheet" type="text/css" href="../css/leftcontent.css"/>
</head>

<body>
<!--San Pham-->
			
				
                  <div class="title_box" id="menusanpham"> Sản Phẩm</div>
                 <ul class="left_menu" id="showmenusanpham">
                 <?php
				 	 foreach ($dmsp as $obj){
						  if($stt%2==0) $sv=$odd; else $sv=$even; ?>
                      <li class="<?php echo $sv ?>"><a href="index.php?idht=<?php echo 4;?>&&idMaDMSP=<?php echo $obj->getMaDMSP(); ?>"><?php  echo $obj->getTenDMSP(); $stt++;?></a>
                            <ul class="left_menu_con" id="showmenucon">
                            	<?php if($spBUS->getSanPhamByMaDMSP($obj->getMaDMSP())!=NULL)
								{
									$spbymdm=$spBUS->getSanPhamByMaDMSP( $obj->getMaDMSP());
									foreach($spbymdm as $obspbymdm)
									{
										if($sttsp%2==0) $svsp=$odd; else $svsp=$even;?>
                                  		<li class="<?php echo $svsp;?>"><a href="index.php?idht=<?php echo 5;?>&&idMSP=<?php echo $obspbymdm->getMaSP();?>"><?php echo $obspbymdm->getTenSP();$sttsp++;?></a></li>
										<?php }}?>
                                     
                             </ul> 
                         </li>                   
                      <?php  }?>               
                                         
                 </ul>
      
                 <!--Dia Phuong-->
                 <?php $sttvung=0;$stttinh=0;
				 		
						$dmvungBUS = new VungBUS();
						$dmvung = $dmvungBUS->getVung();
						$dmtinhBUS =new TinhBUS();
						?>
                   <div class="title_box">Địa Phương</div>
                 <ul class="left_menu">
                     <?php foreach ($dmvung as $objvung){
						  if($sttvung%2==0) $sv=$odd; else $sv=$even; ?>
                    <li class="<?php echo $sv ?>"><a href="index.php?idht=<?php echo 2;?>&&idMaVung=<?php echo $objvung->getMaVung();?>"><?php  echo $objvung->getTenVung(); $sttvung++;?></a>                	
                    	<ul class="left_menu_con" id="showmenucon">
                        		<?php 	
									if($dmtinhBUS->getTinhByMaVung($objvung->getMaVung())!=NULL)
									{							 
										$dmtinh = $dmtinhBUS->getTinhByMaVung($objvung->getMaVung());
										foreach ($dmtinh as $objtinh){ 
											if($stttinh%2==0) $svt=$odd; else $svt=$even;?>
											<li class="<?php echo $svt ?>"><a href="index.php?idht=<?php echo 3;?>&&idMaTinh=<?php echo $objtinh->getMaTinh();?>"><?php  echo $objtinh->getTenTinh(); $stttinh++;?></a></li>
                                  <?php } } ?>
                         </ul> 
                         
                    </li>
                     <?php  }?>
          
                 </ul>
                  <!--special product-->
                 <div class="title_box">Sản Phẩm Đặc Biệt</div>
                     <div class="boder_box">
                        <div class="product_title"><a href="#">Motorola GX440</a></div>
                        <div class="product_image"><a href="#"><img src="image/laptop.png" alt="laptop" /></a></div>
                        <div class="product_price">
                             
                            
                       </div>
                     </div>
                     <!--chat onlien-->
                 <div class="title_box">Chat Online</div>
                     <div class="boder_box">
                      <input type="text" name="newletters" class="newletters_input" value="Your Email" />
                      <a href="#" class="join">join</a>    
                     </div>   
                                 
                   
                   <!--banner-->
                   <div class="banner_adds">
                    <a href="#"><img src="image/bann2.jpg" alt="Banner" /></a>
                    </div>
                     <!--banner-->
                    <div class="banner_adds">
                    <a href="#"><img src="image/bann1.jpg" alt="Banner" /></a>
             		</div>
</body>
</html>